{% extends 'crud/show.html.twig' %}
{% block body %}
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="2000">
        </colgroup>
        <tr>
            <td>ID</td>
            <td>{{ rs.id }}</td>
        </tr>
        <tr>
            <td>父级</td>
            <td id="dry_parent"></td>
        </tr>
        <tr>
            <td>等级</td>
            <td id="dry_grade"></td>
        </tr>
        <tr>
            <td>ICON</td>
            <td id="dry_icon"></td>
        </tr>
        <tr>
            <td>标题</td>
            <td>{{ rs.dry_title }}</td>
        </tr>
        <tr>
            <td>链接</td>
            <td id="dry_link"></td>
        </tr>
        <tr>
            <td>备注</td>
            <td>{{ rs.dry_note }}</td>
        </tr>
        <tr>
            <td>排序</td>
            <td>{{ rs.dry_sort }}</td>
        </tr>
        <tr>
            <td>数据排序</td>
            <td>{{ rs.dry_data_sort }}</td>
        </tr>
        <tr>
            <td>状态</td>
            <td id="dry_status"></td>
        </tr>
        <tr>
            <td>添加时间</td>
            <td>{{ rs.dry_add_time }}</td>
        </tr>
    </table>
{% endblock %}
{% block diy %}
    <script>
        function show(rs, extension)
        {
            $$("dry_parent").innerHTML = menuParentShowHtml(rs, extension);
            $$("dry_grade").innerHTML = menuGradeShowHtml(rs, extension);
            $$("dry_icon").innerHTML = iconShowHtml(rs, extension);
            $$("dry_link").innerHTML = linkShowHtml(rs, extension);
            $$("dry_status").innerHTML = statusShowHtml(rs, extension);
        }
    </script>
{% endblock %}